import React from 'react'
import routes from './routes'
import { useRoutes} from "react-router-dom"


export default function App() {
  return (
    <div >

    {
      useRoutes(routes)
    }

    {/* <Routes>
      <Route path="/login" element={<Login />} />
      <Route path="/main" element={<Main />} >
        <Route path="/main/home" element={<Home />} />
        <Route path="/main/about" element={<About />} />
      </Route>
      <Route path="*" element={<NoFound />} /> */}
      {/* 重定向到login登录页 */}
      {/* <Route path="/" element={<Navigate to='/login' />} />
    </Routes> */}
  </div>
  )
}

